package com.iias;

import com.alibaba.druid.pool.DruidPooledConnection;
import com.iias.data.pool.DataPool;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.Connection;

@RestController
public class TestController {


    @RequestMapping("/test")
    public String getTest(){
        Connection connection = DataPool.getConnection();
        System.out.println(connection);
        DataPool.release(connection);
        Connection connection1 = DataPool.getConnection();
        System.out.println(connection1);
        return "aaaa";
    }
}
